package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_entrepreneurship")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class EntrepreneurshipModel {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String title;//标题
    private String label;//标签
    private String phone;//电话
    private String address;//位置
    private String longitude;//经度
    private String latitude;//纬度
    private String introduction;//简介
    private String swiperImage;//详情轮播图url，多张用","号分隔
    private String remark;//备注
    private Integer type;
    private Integer status;
    private Integer UserId;
    private Integer township;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp updateTime;

    @TableField(exist = false)
    private String townshipText;
    @TableField(exist = false)
    private List<String> swiperImages;
    @TableField(exist = false)
    private List<String> labels;//标签
    @TableField(exist = false)
    private String typeText;
    @TableField(exist = false)
    private String statusText;
    @TableField(exist = false)
    private UserModel userModel;
    @TableField(exist = false)
    private String distance;

}
